<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'list.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
  	<script type="text/javascript" src="js/jquery-1.8.2.min.js"></script></head>
	

  
  <h2>展&nbsp;示&nbsp;表</h2>
  	<body>
    	<table border="1" width="800" cellpadding="10" cellspacing="0">
    		<tr>
    			<th>编号</th>
    			<th>姓名</th>
    			<th>价格</th>
    			<th>时间</th>
    			<th>爱好(名)</th>
    			
    		</tr>
    		<c:forEach items="${list}" var="bean">
    			<tr>
    				<td>${bean.sid}</td>
    				<td>${bean.sname}</td>
    				<td>${bean.sprice}</td>
    				<td>${bean.time}</td>
    				<td>${bean.tname}</td>
    			</tr>
    		</c:forEach>
    	</table>
  	</body>
  
</html>
